﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RazorSourceGenerator
{
    public class GeneratorConsole
    {
        public static void Main(string[] args)
        {
            var configFileName = Generator.DEFAULT_CONFIG_NAME;
            if (args.Length > 0)
            {
                configFileName = args[0];
            }

            var config = GeneratorUtils.LoadConfig(configFileName);
            var generator = new Generator(configFileName, config);
            generator.Run();

            Console.Read();
        }
    }
}
